package com.example.collectiondemo;

import com.interview.write.DemoFive.Test;

import java.lang.reflect.Array;
import java.util.*;

public class LengthSize {
    //构造函数(构造器)
    public LengthSize() {
        newmethod(); //方法
    }

    private void newmethod() {
    }

    public static void main(String[] args) {
        int[] a = new int[]{3, 5, 6, 234, 32};
        List<String> list3 = new ArrayList<>();
        List<String> list = new LinkedList<>();
        String aa = "123456wer";
        HashSet hashSet = new HashSet(); //HashSet 封装了 hashmap 和 treemap
        HashMap hashMap = new HashMap();
        System.out.println(a.length);
        System.out.println(aa.length());
        System.out.println(list3.size());
        System.out.println(list.size());
        System.out.println(hashSet.size());
        System.out.println(hashMap.size());
        newconstruction();

    }
    //方法
    private static void newconstruction() {
    }
}

